package cn.rkylin.oms.base.channel.dao;

import cn.rkylin.oms.base.channel.domain.Channel;
import cn.rkylin.oms.base.channel.vo.ChannelVO;

/**
 * 渠道DAO
 */
public interface IChannelDAO {
	
	
	/**
     * 更新, 根据mdm_code
     *
     * @param channelVO
     * @return
     * @throws Exception
     */
    public int updateByMdmCodeSelectiveChannel(ChannelVO channeVO) throws Exception;

    /**
     * 插入
     *
     * @param channel
     * @return
     * @throws Exception
     */
    public int insertSelectiveChannel(ChannelVO channelVO) throws Exception;

	/**
	 * 添加渠道
	 * 
	 * @param stockIn
	 *            渠道bean
	 * @return 添加条数
	 * @throws Exception
	 *             异常
	 */
	public int insertChannel(Channel channel) throws Exception;

	/**
	 * 更新渠道
	 *
	 * @param channel
	 *            渠道bean
	 * @return 更新条数
	 * @throws Exception
	 *             异常
	 */
	public int updateChannel(Channel channel) throws Exception;
	
    /**
     * 删除渠道
     * 
     * @param channelId
     *           渠道ID
     * @return
     * @throws Exception
     *             异d
     */
	public int deleteChannel(String channelId) throws Exception;
	
	/**
     * 查询
     *
     * @param mdmCode
     * @return
     * @throws Exception
     */
	public ChannelVO selectByChannelMdmCode(String mdmCode) throws Exception;

	/**
	 * 查询
	 * 
	 * @param channelVO
	 * @return
	 * @throws Exception
	 */
	public ChannelVO selectByChannelCode(ChannelVO channelVO) throws Exception;

	/**
	 * 获取渠道信息
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	 public ChannelVO findById(String id) throws Exception;

	

	 
	

	
	
}
